<?php

use Illuminate\Routing\Router;

Route::group([
    'domain'=>config('admin.route.domain'),
    'prefix' => config('admin.route.api_prefix'),
    'namespace'=>config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->get('/home', 'HomeController@index')->name('admin.home');

    $router->resource('movies','MovieController');


    $router->get('layout','LayoutController@index');
    $router->get('button','ButtonController@index');
    $router->get('alert','AlertController@index');
    $router->get('request','ServeController@request')->name('demo.request');

    $router->resource('top250','Top250Controller');
    $router->get('top250-dialogGrid','Top250Controller@dialogGrid')->name('top250-dialogGrid');


    $router->resource('form','FormController');
});
